<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./../../WEB-INF/templates/noFooterCompanyTemplate.xhtml">

            <ui:define name="content">
                <h:form id="indexCompanyForm">
                    <h:outputScript target="head" library="javascript" name="masonry.js"></h:outputScript>
                    <h:outputScript target="head" library="javascript" name="indexViewCandidate.js"></h:outputScript>
                    <p:panel styleClass="noMargin noPadding noBorder fixedCandidateAbstract">
                        <h:graphicImage value="/companyFiles/#{viewCompanyBean.company.idCompany.toString()}/images/#{viewCompanyBean.company.logo}" styleClass="imagenAbstractIndexCompany" rendered="#{viewCompanyBean.company.logo!=null}" ></h:graphicImage>
                    </p:panel>
                    <div class="divContentViewCandidate">
                        <div class="viewCandidateColumn">
                            <div class="viewCandidateColumnTitle personalBackgroundButton">
                                <span>#{messages.SearchGeneralInformation}</span>
                            </div>
                            <p:panel styleClass="noBorder noPadding noMargin">
                                <p:panelGrid columnClasses="personalViewPanelGridColumn" styleClass="personalViewPanelGrid noMargin noPadding noBorder" columns="1">  
                                    <h:outputText class="viewCandidateLabel" value="#{messages.Name}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.name==null}" value="#{messages.InformationNotAvailable}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.name!=null}" value="#{viewCompanyBean.company.name}">  </h:outputText>  

                                    <h:outputText class="viewCandidateLabel" value="#{messages.Email}"></h:outputText>
                                    <h:outputText class="viewCandidateText" value="#{viewCompanyBean.company.idUser.email}"></h:outputText>

                                    <h:outputText class="viewCandidateLabel" value="#{messages.Phone}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.phone==null or viewCompanyBean.company.phone==''}" value="#{messages.InformationNotAvailable}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.phone!=null}" id="phone"  value="#{viewCompanyBean.company.phone}"></h:outputText>

                                    <h:outputText class="viewCandidateLabel" value="#{messages.CompanyCif}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.cif==null or viewCompanyBean.company.cif==''}" value="#{messages.InformationNotAvailable}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.cif!=null}" id="cif" value="#{viewCompanyBean.company.cif}"></h:outputText>

                                    <h:outputText class="viewCandidateLabel" value="#{messages.CompanyContact}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.contact==null}" value="#{messages.InformationNotAvailable}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.contact!=null}" id="selectSex" value="#{viewCompanyBean.company.contact}"></h:outputText>

                                    <h:outputText class="viewCandidateLabel" value="#{messages.Country}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.country==null}" value="#{messages.InformationNotAvailable}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.country!=null}" id="selectCountry" value="#{countryBundle[viewCompanyBean.company.country.idCountry.toString()]}"></h:outputText>

                                    <h:outputText class="viewCandidateLabel" value="#{messages.Province}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.province==null}" value="#{messages.InformationNotAvailable}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.province!=null}" value="#{viewCompanyBean.company.province.description}"></h:outputText>

                                    <h:outputText class="viewCandidateLabel" value="#{messages.Town}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.town==null}" value="#{messages.InformationNotAvailable}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.town!=null}" value="#{viewCompanyBean.company.town.description}"></h:outputText>

                                    <h:outputText class="viewCandidateLabel" value="#{messages.Address}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.address==null or viewCompanyBean.company.address==''}" value="#{messages.InformationNotAvailable}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.address!=null}" value="#{viewCompanyBean.company.address}"></h:outputText>

                                    <h:outputText class="viewCandidateLabel" value="#{messages.PostalCode}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.postalCode==null or viewCompanyBean.company.postalCode==''}" value="#{messages.InformationNotAvailable}"></h:outputText>
                                    <h:outputText class="viewCandidateText" rendered="#{viewCompanyBean.company.postalCode!=null}" value="#{viewCompanyBean.company.postalCode}"></h:outputText>
                                </p:panelGrid>
                            </p:panel>
                        </div>
                        <div class="viewCandidateColumn #{polaroidBean.randomTextAlign eq 1 ? 'right' : ''}">
                            <div class="viewCandidateColumnTitle professionalBackgroundButton">
                                <span>#{messages.CouldInterest}</span>
                            </div>
                            <p:panel styleClass="noBorder noPadding noMargin">
                                <h:outputText styleClass="viewCandidateLabel" value="#{messages.InformationNotAvailable}"></h:outputText>
                            </p:panel>
                        </div>
                        <div class="viewCandidateColumn #{polaroidBean.randomTextAlign eq 1 ? 'right' : ''}">
                            <div class="viewCandidateColumnTitle educationalBackgroundButton">
                                <span>#{messages.Credits}</span>
                            </div>
                            <p:panel styleClass="noBorder noPadding noMargin">
                                <p:panelGrid columnClasses="personalViewPanelGridColumn" styleClass="personalViewPanelGrid noMargin noPadding noBorder" columns="1">
                                    <h:outputFormat class="viewCandidateLabel" value="#{messages.CreditsAvailable}" >
                                        <f:param value="#{viewCompanyBean.company.availableCredits}" />
                                    </h:outputFormat> 
                                    <!--<p:commandLink>
                                        <h:outputText styleClass="viewCandidateText" value="#{messages.BuyMoreCredits}"></h:outputText>
                                    </p:commandLink>!-->
                                </p:panelGrid>
                            </p:panel>
                        </div>
                    </div>
                </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
